<%--
  Created by IntelliJ IDEA.
  User: LT
  Date: 2018-11-02
  Time: 17:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="bootstrap/table/bootstrap-table.min.css">
    <script src="bootstrap/jquery-3.2.1.min.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <script src="bootstrap/table/bootstrap-table.min.js"></script>
    <script src="bootstrap/table/locale/bootstrap-table-zh-CN.min.js"></script>

    <script>
        $(function () {
            $("#usertb").bootstrapTable({
                url:'${pageContext.request.contextPath}/user',
                columns:[
                    {field:'id',title:'编号'},
                    {field:'name',title:'姓名'},
                    {field:'address',title:'地址'}
                ]
            }) ;
        })
    </script>

</head>
<body>
<nav class="navbar navbar-default" role="navigation">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
        <a class="navbar-brand" href="#">Home</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse navbar-ex1-collapse">
        <ul class="nav navbar-nav">
            <li class="active"><a href="#">后台管理系统</a></li>

        </ul>

        <ul class="nav navbar-nav navbar-right">
            <li><a href="#">用户名：张三</a></li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">操作 <b class="caret"></b></a>
                <ul class="dropdown-menu">
                    <li><a href="#">Action</a></li>
                    <li><a href="#">Another action</a></li>
                    <li><a href="#">Something else here</a></li>
                    <li><a href="#">Separated link</a></li>
                </ul>
            </li>
        </ul>
    </div><!-- /.navbar-collapse -->
</nav>

<div class="container">
    <div class="row">
        <div class="col-sm-3">
            <ul class="list-group">
                <li class="list-group-item">用户列表</li>
                <li class="list-group-item">用户查询</li>
                <li class="list-group-item">增加用户</li>
            </ul>
        </div>
        <div class="col-sm-9">
            <!-- TAB NAVIGATION -->
            <ul class="nav nav-tabs" role="tablist">
                <li class="active"><a href="#tab1" role="tab" data-toggle="tab">用户列表</a></li>
                <li><a href="#tab2" role="tab" data-toggle="tab">查询用户</a></li>
                <li><a href="#tab3" role="tab" data-toggle="tab">添加用户</a></li>
            </ul>
            <!-- TAB CONTENT -->
            <div class="tab-content">
                <div class="active tab-pane fade in" id="tab1">
                   <table id="usertb" style="border: 1px solid #cccccc; border-top: 0px"></table>
                </div>
                <div class="tab-pane fade" id="tab2">
                    <h2>Tab2</h2>
                    <p>Lorem ipsum.</p>
                </div>
                <div class="tab-pane fade" id="tab3">
                    <h2>Tab3</h2>
                    <p>Lorem ipsum.</p>
                </div>
            </div>

        </div>
    </div>
</div>
</body>
</html>
